<!DOCTYPE HTML>
<?php
require 'func.php';
require_once 'config.php';
$studentID = "120";
$attempt = "1";
$testID = "1";
$questionID = "1";
$currentQuestion = "3"; 

 $query = "INSERT INTO student ("; 
 foreach($field as $field => $value)
 {
 $query .= "$field,";
 }
 $query .= ") VALUES (";
 foreach($field as $field => $value) 
 {
 $query .= "'$value',";
 }
 $query .= ")";
 $result = mysqli_query($cxn,$query)
 or die ("Couldn't execute query. "
 .mysqli_error($con));
 echo "<h4>New Member added to database</h4>";




?>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
</head>

<body>
</body>
</html>